#include <cstring>

#include "Renderer.h"
#include "Constants.h"

Renderer::Renderer() {
  screen = SDL_SetVideoMode( VIDEO_SIZE_X, VIDEO_SIZE_Y, 0, SDL_HWSURFACE | SDL_HWPALETTE | SDL_DOUBLEBUF );
}

Renderer::~Renderer() {
  free( screen );
}

void Renderer::refreshScreen() {
  SDL_Flip( screen );
}
